package com.lx.crm.workbench.service.impl;

import com.lx.crm.workbench.domain.Clue;
import com.lx.crm.workbench.mapper.ClueMapper;
import com.lx.crm.workbench.service.ClueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 雒鑫
 */
@Service("clueService")
public class ClueServiceImpl implements ClueService {
    @Autowired
    private ClueMapper clueMapper;

    @Override
    public int savaCreateClue(Clue clue) {
        return clueMapper.insertClue(clue);
    }

    @Override
    public Clue queryClueForDetaillById(String id) {
        return clueMapper.selectClueForDatailById(id);
    }

    @Override
    public List<Clue> queryClueByConditionForPage(Map<String, Object> map) {
        return clueMapper.selectClueByConditionForPage(map);
    }

    @Override
    public int queryClueCount(Map<String, Object> map) {
        return clueMapper.selectClueCount(map);
    }
}
